<template>
  <div>
    <!-- style="width: 100px; height: 100px" -->
    <el-image
      :src="src"
      class="img-container"
    >
      <template #error>
        <img src="./img.jpeg" alt="">
      </template>
    </el-image>
  </div>
</template>
<script>
export default {
  props: {
    src: {
      type: String,
      required: true,
      default: ''
    }
  }
}
</script>
<style scoped lang="scss">
.img-container {
  border-radius: 50%;
  ::v-deep img{
    width: 100px;
    height: 100px;
  }
}
</style>

